package com.situ.spring.controller;

import javax.annotation.Resource;

import org.springframework.stereotype.Controller;

import com.situ.spring.service.IStudentService;

//<bean name="studentController" class="com.situ.spring.controller.StudentController">
//	<property name="studentService" ref="studentService"/>
//</bean>
@Controller("studentController")
public class StudentController {
	@Resource(name="studentService")
	private IStudentService studentService;

	public void print() {
		studentService.print();
	}
	
	public IStudentService getStudentService() {
		return studentService;
	}

	public void setStudentService(IStudentService studentService) {
		this.studentService = studentService;
	}
	
	
}
